add_executable(Simple_Server Simple_Server/Simple_Server.cpp)
add_executable(Simple_Client Simple_Client/Simple_Client.cpp)


find_package(asio CONFIG REQUIRED)
find_package(msgpack CONFIG REQUIRED)


target_link_libraries(Simple_Server PRIVATE asio asio::asio msgpackc msgpackc-cxx)
target_link_libraries(Simple_Client PRIVATE asio asio::asio msgpackc msgpackc-cxx)

if (ENABLE_SSL)
    target_link_libraries(Simple_Server ${Boost_LIBRARIES} -lssl -lcrypto -lpthread)
    target_link_libraries(Simple_Client ${Boost_LIBRARIES} -lssl -lcrypto -lpthread)
else()
    target_link_libraries(Simple_Server ${Boost_LIBRARIES})
    target_link_libraries(Simple_Client ${Boost_LIBRARIES})
endif()
